package com.woniuxy.LogBackTest;


import com.woniuxy.Service.ClazzService;
import com.woniuxy.Service.Imp.ClazzServiceImpl;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author：向天浩
 * @Date：2022/1/22 12:03
 * @Description :测试单元测试和日志是否有效果
 */

public class MyTest {
    //创建日志对象
        private static Logger Logger= LoggerFactory.getLogger(MyTest.class);
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
        ClazzService clazzServiceImpl = applicationContext.getBean("clazzServiceImpl", ClazzService.class);
        clazzServiceImpl.updateClazz(1001,"85期");

    }
}




